package com.baomidou.springwind.service.impl;

import com.baomidou.springwind.entity.Goods;
import com.baomidou.springwind.mapper.GoodsDao;
import com.baomidou.springwind.service.GoodsService;
import com.baomidou.springwind.service.support.BaseServiceImpl;
import com.baomidou.springwind.utils.ParamMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Goods 表数据服务层接口实现类
 */
@Service
public class GoodsServiceImpl extends BaseServiceImpl<GoodsDao, Goods> implements GoodsService {

    @Autowired
    private GoodsDao goodsDao;

    @Override
    public BigDecimal selectStockVolume( ParamMap<String, Object> pm) {
        return goodsDao.selectStockVolume(pm);
    }

    @Override
    public List<Map<String, Object>> selectGoodsInitialStock(Long batchId) {
        return goodsDao.selectGoodsInitialStock(batchId);
    }

    @Override
    public List<Map<String, Object>> selectGoodsTimeStock(Long batchId) {
        return goodsDao.selectGoodsTimeStock(batchId);
    }

    @Override
    public List<Map<String, Object>> selectGoodsDayAmount(Long batchId) {
        return goodsDao.selectGoodsDayAmount(batchId);
    }

    @Override
    public List<Map<String, Object>> selectGoodsMoney(Long batchId) {
        return goodsDao.selectGoodsMoney(batchId);
    }
}